const Joi = require("joi");


const majorName = Joi.string().required();
const engName = Joi.string().alphanum();
const id = Joi.number().integer().min(1).required();


// 修改专业信息
exports.update_major_schema = {
    body: {
      majorId: id,
      majorName,
      engName,
    },
  };
  
  // 新增
  exports.add_major_schema = {
    body: {
      majorName,
      engName,
    },
  };
  
  
  // 删除
  exports.delete_major_schema = {
    params: {
      majorId: id,
    },
  };
